# Filters added to this controller will be run for all controllers in the application.
# Likewise, all the methods added will be available for all controllers.
class AdminController < ApplicationController
  before_filter :ensure_administrator
  
  private
  def ensure_administrator
    authenticate_or_request_with_http_basic("Admin") do |user,pass|
      user == "admin" && pass == "babaka"
    end
  end  
end